/* 
 * File:   RepoItem.h
 * Author: gabilan
 *
 * Created on 26 de mayo de 2013, 20:11
 */
#include <string>
#include <vector>

using namespace std;

#ifndef REPOITEM_H
#define	REPOITEM_H

#define SEPARADOR_NODO "/";

class RepoItem {
public:
    RepoItem();
    
    std::string GetFilename() const
    {return this->_filename;}
    
    std::string GetFilePath() const
    {return this->_filepath;}
    
    string GetHash(const size_t &pIndice) const
    {return this->_hashes[pIndice];}
    
    void SetFilename(const std::string & s)
    {this->_filename = s;}
    
    void SetFilePath(const std::string & s)
    {this->_filepath = s;}
    
    void AddHash(const std::string &s)
    {this->_hashes.push_back(s);}
    
    string GetRutaCompletaArchivo ();
    
    size_t GetCantidadHashes();
    
    virtual ~RepoItem();
private:
    
    RepoItem(const RepoItem& orig);
    
    RepoItem & operator = (const RepoItem&);
    
    std::string _filename;
    std::string _filepath;
    vector<std::string> _hashes;
};

#endif	/* REPOITEM_H */

